<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="zh">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.9.5"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>SWM34S_LVGL7.11_SWMUI: C:/Users/DELL/Desktop/Commit/lvgl/SWM34S_LVGL7.11_SWMUI_20230515/APP/BSP/dev_jpeg.c 文件参考</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr id="projectrow">
  <td id="projectalign">
   <div id="projectname">SWM34S_LVGL7.11_SWMUI<span id="projectnumber">&#160;V7.9</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.9.5 -->
<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_0ca16891106f5a3e9ad635a0d6c5f98f.html">APP</a></li><li class="navelem"><a class="el" href="dir_4ca18d753a70f6eada20fde478bd3fc8.html">BSP</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#enum-members">枚举</a> &#124;
<a href="#func-members">函数</a> &#124;
<a href="#var-members">变量</a>  </div>
  <div class="headertitle"><div class="title">dev_jpeg.c 文件参考</div></div>
</div><!--header-->
<div class="contents">

<p>JPEG 硬件解码  
<a href="#details">更多...</a></p>
<div class="textblock"><code>#include &quot;<a class="el" href="dev__jpeg_8h_source.html">dev_jpeg.h</a>&quot;</code><br />
</div><div class="textblock"><div class="dynheader">
dev_jpeg.c 的引用(Include)关系图:</div>
<div class="dyncontent">
<div class="center"><img src="dev__jpeg_8c__incl.png" border="0" usemap="#a_c_1_2_users_2_d_e_l_l_2_desktop_2_commit_2lvgl_2_s_w_m34_s___l_v_g_l7_811___s_w_m_u_i__20230515_2_a_p_p_2_b_s_p_2dev__jpeg_8c" alt=""/></div>
<map name="a_c_1_2_users_2_d_e_l_l_2_desktop_2_commit_2lvgl_2_s_w_m34_s___l_v_g_l7_811___s_w_m_u_i__20230515_2_a_p_p_2_b_s_p_2dev__jpeg_8c" id="a_c_1_2_users_2_d_e_l_l_2_desktop_2_commit_2lvgl_2_s_w_m34_s___l_v_g_l7_811___s_w_m_u_i__20230515_2_a_p_p_2_b_s_p_2dev__jpeg_8c">
<area shape="rect" title="JPEG 硬件解码" alt="" coords="5,5,269,60"/>
<area shape="rect" href="dev__jpeg_8h.html" title="JPEG 硬件解码" alt="" coords="96,108,179,133"/>
<area shape="rect" title=" " alt="" coords="109,255,195,280"/>
<area shape="rect" href="version_8h.html" title="版本/目标控制" alt="" coords="101,181,174,207"/>
<area shape="rect" href="jfif__parser_8h.html" title="jpeg 图片 jfif 格式解析" alt="" coords="199,181,287,207"/>
</map>
</div>
</div>
<p><a href="dev__jpeg_8c_source.html">浏览源代码.</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="enum-members" name="enum-members"></a>
枚举</h2></td></tr>
<tr class="memitem:a3d600ad47f709a0dcfa5cbf1a00fc31a"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="dev__jpeg_8c.html#a3d600ad47f709a0dcfa5cbf1a00fc31a">irq_flag_t</a> { <br />
&#160;&#160;<a class="el" href="dev__dac_8c.html#a3d600ad47f709a0dcfa5cbf1a00fc31aa0d077f5b932ce05e5b9f30c6087a2f31">NO</a> = 0
, <a class="el" href="dev__dac_8c.html#a3d600ad47f709a0dcfa5cbf1a00fc31aa2bc49ec37d6a5715dd23e85f1ff5bb59">OK</a>
, <a class="el" href="dev__jpeg_8c.html#a3d600ad47f709a0dcfa5cbf1a00fc31aa0d077f5b932ce05e5b9f30c6087a2f31">NO</a> = 0
, <a class="el" href="dev__jpeg_8c.html#a3d600ad47f709a0dcfa5cbf1a00fc31aa2bc49ec37d6a5715dd23e85f1ff5bb59">OK</a>
, <br />
&#160;&#160;<a class="el" href="dev__touch_8c.html#a3d600ad47f709a0dcfa5cbf1a00fc31aa0d077f5b932ce05e5b9f30c6087a2f31">NO</a> = 0
, <a class="el" href="dev__touch_8c.html#a3d600ad47f709a0dcfa5cbf1a00fc31aa2bc49ec37d6a5715dd23e85f1ff5bb59">OK</a>
, <a class="el" href="load__mv_8c.html#a3d600ad47f709a0dcfa5cbf1a00fc31aa0d077f5b932ce05e5b9f30c6087a2f31">NO</a> = 0
, <a class="el" href="load__mv_8c.html#a3d600ad47f709a0dcfa5cbf1a00fc31aa2bc49ec37d6a5715dd23e85f1ff5bb59">OK</a>
<br />
 }</td></tr>
<tr class="memdesc:a3d600ad47f709a0dcfa5cbf1a00fc31a"><td class="mdescLeft">&#160;</td><td class="mdescRight">中断标志  <a href="dev__jpeg_8c.html#a3d600ad47f709a0dcfa5cbf1a00fc31a">更多...</a><br /></td></tr>
<tr class="separator:a3d600ad47f709a0dcfa5cbf1a00fc31a"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="func-members" name="func-members"></a>
函数</h2></td></tr>
<tr class="memitem:a1cbc17a98f22c1c19a7d33c85a14fccd"><td class="memItemLeft" align="right" valign="top">uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="dev__jpeg_8c.html#a1cbc17a98f22c1c19a7d33c85a14fccd">jpeg_decode_isbusy</a> (void)</td></tr>
<tr class="memdesc:a1cbc17a98f22c1c19a7d33c85a14fccd"><td class="mdescLeft">&#160;</td><td class="mdescRight">JPEG 硬件解码忙查询  <a href="dev__jpeg_8c.html#a1cbc17a98f22c1c19a7d33c85a14fccd">更多...</a><br /></td></tr>
<tr class="separator:a1cbc17a98f22c1c19a7d33c85a14fccd"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac0e9fc8534c961b9dbba6ad4b8e8b61e"><td class="memItemLeft" align="right" valign="top">void *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="dev__jpeg_8c.html#ac0e9fc8534c961b9dbba6ad4b8e8b61e">jpeg_decode</a> (const void *buff, const uint32_t size, const jpeg_outset_t *jpeg_outset, void *(*ram_malloc)(size_t size), const uint8_t wait)</td></tr>
<tr class="memdesc:ac0e9fc8534c961b9dbba6ad4b8e8b61e"><td class="mdescLeft">&#160;</td><td class="mdescRight">JPEG 硬件解码  <a href="dev__jpeg_8c.html#ac0e9fc8534c961b9dbba6ad4b8e8b61e">更多...</a><br /></td></tr>
<tr class="separator:ac0e9fc8534c961b9dbba6ad4b8e8b61e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a036588013ef5d04b04f06e8ecd22262e"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="dev__jpeg_8c.html#a036588013ef5d04b04f06e8ecd22262e">jpeg_init</a> (void)</td></tr>
<tr class="memdesc:a036588013ef5d04b04f06e8ecd22262e"><td class="mdescLeft">&#160;</td><td class="mdescRight">初始化 JPEG 硬件解码器模块  <a href="dev__jpeg_8c.html#a036588013ef5d04b04f06e8ecd22262e">更多...</a><br /></td></tr>
<tr class="separator:a036588013ef5d04b04f06e8ecd22262e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a72dac42e70bc8ad56832a3a3045476e7"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="dev__jpeg_8c.html#a72dac42e70bc8ad56832a3a3045476e7">isr_jpeg</a> (void)</td></tr>
<tr class="memdesc:a72dac42e70bc8ad56832a3a3045476e7"><td class="mdescLeft">&#160;</td><td class="mdescRight">JPEG ISR Callback  <a href="dev__jpeg_8c.html#a72dac42e70bc8ad56832a3a3045476e7">更多...</a><br /></td></tr>
<tr class="separator:a72dac42e70bc8ad56832a3a3045476e7"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="var-members" name="var-members"></a>
变量</h2></td></tr>
<tr class="memitem:a134ecf44573e0f7204be01b09c1e48bb"><td class="memItemLeft" align="right" valign="top">uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="dev__jpeg_8c.html#a134ecf44573e0f7204be01b09c1e48bb">JPEG_Decoder_Buff</a> [512 *1024]</td></tr>
<tr class="memdesc:a134ecf44573e0f7204be01b09c1e48bb"><td class="mdescLeft">&#160;</td><td class="mdescRight">使用 JPEG 解码需要一块缓冲区, 大小视图片文件大小决定, 不能小于最大的那张 JPEG 图的大小, 只有在理论极坏情况下会接近原图大小, 因为 JPEG 编码利用人类视觉系统对色彩/高频的不敏感特性 1、RGB to YCrCb, 对 Cr 和 Cb 下采样; 2、DCT-2D 变换, 舍弃部分高频信息, 采用游程编码和 Huffman 编码进一步减少数据冗余; 故基本不可能达到原图 bmp 格式的大小.  <a href="dev__jpeg_8c.html#a134ecf44573e0f7204be01b09c1e48bb">更多...</a><br /></td></tr>
<tr class="separator:a134ecf44573e0f7204be01b09c1e48bb"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac226d28552b805cfde07209d751e923e"><td class="memItemLeft" align="right" valign="top">static volatile <a class="el" href="dev__dac_8c.html#a3d600ad47f709a0dcfa5cbf1a00fc31a">irq_flag_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="dev__jpeg_8c.html#ac226d28552b805cfde07209d751e923e">IRQ_JPEG_Flag</a> = <a class="el" href="dev__dac_8c.html#a3d600ad47f709a0dcfa5cbf1a00fc31aa2bc49ec37d6a5715dd23e85f1ff5bb59">OK</a></td></tr>
<tr class="memdesc:ac226d28552b805cfde07209d751e923e"><td class="mdescLeft">&#160;</td><td class="mdescRight">JPEG 解码完成标志  <a href="dev__jpeg_8c.html#ac226d28552b805cfde07209d751e923e">更多...</a><br /></td></tr>
<tr class="separator:ac226d28552b805cfde07209d751e923e"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">详细描述</h2>
<div class="textblock"><p >JPEG 硬件解码 </p>
<p >/ </p><dl class="section since"><dt>自从</dt><dd>Change Logs: Date Author Notes 2022-12-08 lzh the first version </dd></dl>
<dl class="section remark"><dt>备注</dt><dd>/</dd></dl>
<dl class="section attention"><dt>注意</dt><dd></dd></dl>
<p>THE PRESENT FIRMWARE WHICH IS FOR GUIDANCE ONLY AIMS AT PROVIDING CUSTOMERS WITH CODING INFORMATION REGARDING THEIR PRODUCTS IN ORDER FOR THEM TO SAVE TIME. AS A RESULT, SYNWIT SHALL NOT BE HELD LIABLE FOR ANY DIRECT, INDIRECT OR CONSEQUENTIAL DAMAGES WITH RESPECT TO ANY CLAIMS ARISING FROM THE CONTENT OF SUCH FIRMWARE AND/OR THE USE MADE BY CUSTOMERS OF THE CODING INFORMATION CONTAINED HEREIN IN CONN- -ECTION WITH THEIR PRODUCTS.</p>
<dl class="section copyright"><dt>版权所有</dt><dd>2012 Synwit Technology </dd></dl>

<p class="definition">在文件 <a class="el" href="dev__jpeg_8c_source.html">dev_jpeg.c</a> 中定义.</p>
</div><h2 class="groupheader">枚举类型说明</h2>
<a id="a3d600ad47f709a0dcfa5cbf1a00fc31a" name="a3d600ad47f709a0dcfa5cbf1a00fc31a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a3d600ad47f709a0dcfa5cbf1a00fc31a">&#9670;&#160;</a></span>irq_flag_t</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="dev__dac_8c.html#a3d600ad47f709a0dcfa5cbf1a00fc31a">irq_flag_t</a></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>中断标志 </p>
<table class="fieldtable">
<tr><th colspan="2">枚举值</th></tr><tr><td class="fieldname"><a id="a3d600ad47f709a0dcfa5cbf1a00fc31aa0d077f5b932ce05e5b9f30c6087a2f31" name="a3d600ad47f709a0dcfa5cbf1a00fc31aa0d077f5b932ce05e5b9f30c6087a2f31"></a>NO&#160;</td><td class="fielddoc"><p >未触发中断 </p>
</td></tr>
<tr><td class="fieldname"><a id="a3d600ad47f709a0dcfa5cbf1a00fc31aa2bc49ec37d6a5715dd23e85f1ff5bb59" name="a3d600ad47f709a0dcfa5cbf1a00fc31aa2bc49ec37d6a5715dd23e85f1ff5bb59"></a>OK&#160;</td><td class="fielddoc"><p >已触发中断 </p>
</td></tr>
<tr><td class="fieldname"><a id="a3d600ad47f709a0dcfa5cbf1a00fc31aa0d077f5b932ce05e5b9f30c6087a2f31" name="a3d600ad47f709a0dcfa5cbf1a00fc31aa0d077f5b932ce05e5b9f30c6087a2f31"></a>NO&#160;</td><td class="fielddoc"><p >未触发中断 </p>
</td></tr>
<tr><td class="fieldname"><a id="a3d600ad47f709a0dcfa5cbf1a00fc31aa2bc49ec37d6a5715dd23e85f1ff5bb59" name="a3d600ad47f709a0dcfa5cbf1a00fc31aa2bc49ec37d6a5715dd23e85f1ff5bb59"></a>OK&#160;</td><td class="fielddoc"><p >已触发中断 </p>
</td></tr>
<tr><td class="fieldname"><a id="a3d600ad47f709a0dcfa5cbf1a00fc31aa0d077f5b932ce05e5b9f30c6087a2f31" name="a3d600ad47f709a0dcfa5cbf1a00fc31aa0d077f5b932ce05e5b9f30c6087a2f31"></a>NO&#160;</td><td class="fielddoc"><p >未触发中断 </p>
</td></tr>
<tr><td class="fieldname"><a id="a3d600ad47f709a0dcfa5cbf1a00fc31aa2bc49ec37d6a5715dd23e85f1ff5bb59" name="a3d600ad47f709a0dcfa5cbf1a00fc31aa2bc49ec37d6a5715dd23e85f1ff5bb59"></a>OK&#160;</td><td class="fielddoc"><p >已触发中断 </p>
</td></tr>
<tr><td class="fieldname"><a id="a3d600ad47f709a0dcfa5cbf1a00fc31aa0d077f5b932ce05e5b9f30c6087a2f31" name="a3d600ad47f709a0dcfa5cbf1a00fc31aa0d077f5b932ce05e5b9f30c6087a2f31"></a>NO&#160;</td><td class="fielddoc"><p >未触发中断 </p>
</td></tr>
<tr><td class="fieldname"><a id="a3d600ad47f709a0dcfa5cbf1a00fc31aa2bc49ec37d6a5715dd23e85f1ff5bb59" name="a3d600ad47f709a0dcfa5cbf1a00fc31aa2bc49ec37d6a5715dd23e85f1ff5bb59"></a>OK&#160;</td><td class="fielddoc"><p >已触发中断 </p>
</td></tr>
</table>

<p class="definition">在文件 <a class="el" href="dev__jpeg_8c_source.html">dev_jpeg.c</a> 第 <a class="el" href="dev__jpeg_8c_source.html#l00038">38</a> 行定义.</p>

</div>
</div>
<h2 class="groupheader">函数说明</h2>
<a id="a1cbc17a98f22c1c19a7d33c85a14fccd" name="a1cbc17a98f22c1c19a7d33c85a14fccd"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a1cbc17a98f22c1c19a7d33c85a14fccd">&#9670;&#160;</a></span>jpeg_decode_isbusy()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint8_t jpeg_decode_isbusy </td>
          <td>(</td>
          <td class="paramtype">void&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>JPEG 硬件解码忙查询 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">/</td><td></td></tr>
  </table>
  </dd>
</dl>
<dl class="retval"><dt>返回值</dt><dd>
  <table class="retval">
    <tr><td class="paramname">0</td><td>: 空闲, 未在解码 </td></tr>
    <tr><td class="paramname">1</td><td>: 忙碌, 正在解码 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section user"><dt>示例:</dt><dd><div class="fragment"><div class="line"><span class="keywordflow">while</span> ( <a class="code hl_function" href="dev__jpeg_8c.html#a1cbc17a98f22c1c19a7d33c85a14fccd">jpeg_decode_isbusy</a>() != 0 ) ;</div>
<div class="ttc" id="adev__jpeg_8c_html_a1cbc17a98f22c1c19a7d33c85a14fccd"><div class="ttname"><a href="dev__jpeg_8c.html#a1cbc17a98f22c1c19a7d33c85a14fccd">jpeg_decode_isbusy</a></div><div class="ttdeci">uint8_t jpeg_decode_isbusy(void)</div><div class="ttdoc">JPEG 硬件解码忙查询</div><div class="ttdef"><b>Definition:</b> <a href="dev__jpeg_8c_source.html#l00057">dev_jpeg.c:57</a></div></div>
</div><!-- fragment --> </dd></dl>

<p class="definition">在文件 <a class="el" href="dev__jpeg_8c_source.html">dev_jpeg.c</a> 第 <a class="el" href="dev__jpeg_8c_source.html#l00057">57</a> 行定义.</p>
<div class="dynheader">
这是这个函数的调用关系图:</div>
<div class="dyncontent">
<div class="center"><img src="dev__jpeg_8c_a1cbc17a98f22c1c19a7d33c85a14fccd_icgraph.png" border="0" usemap="#adev__jpeg_8c_a1cbc17a98f22c1c19a7d33c85a14fccd_icgraph" alt=""/></div>
<map name="adev__jpeg_8c_a1cbc17a98f22c1c19a7d33c85a14fccd_icgraph" id="adev__jpeg_8c_a1cbc17a98f22c1c19a7d33c85a14fccd_icgraph">
<area shape="rect" title="JPEG 硬件解码忙查询" alt="" coords="2047,195,2187,220"/>
<area shape="rect" href="load__mv_8c.html#a3a29f68f2d856a9c2eea3a328d5233e8" title="解码 avi 视频播放" alt="" coords="1728,171,1835,196"/>
<area shape="rect" href="dev__jpeg_8c.html#ac0e9fc8534c961b9dbba6ad4b8e8b61e" title="JPEG 硬件解码" alt="" coords="1904,195,1999,220"/>
<area shape="rect" href="load__file_8c.html#a19787671d1d62339e0cf53a1b1f7ab98" title="加载图片信息至 SDRAM 内" alt="" coords="1707,220,1856,245"/>
<area shape="rect" href="load__file_8c.html#a2efc2116dbabe389a95c812f9dc6aa03" title="加载资源至 SDRAM 内" alt="" coords="1505,220,1659,245"/>
<area shape="rect" href="ui__event_8c.html#a5d0714ab1f8d703a7a6aa480a25ba608" title="GIF 轮播刷新任务(用于 M0 芯片素材显示)" alt="" coords="1365,296,1457,321"/>
<area shape="rect" href="ui__event_8c.html#ac098d7daab78175856fe3d9f75df0347" title="进入 M0 / M4 SHOW 页前的资源准备" alt="" coords="1171,245,1309,271"/>
<area shape="rect" href="setup__scr__home_8c.html#a9e86b57f14343f1fdf1b6450fbcdef08" title="创建主桌面" alt="" coords="331,295,449,320"/>
<area shape="rect" href="ui__event_8c.html#a443210034526535b309f60ac9de63be6" title="GIF 轮播刷新任务(用于 M4 芯片素材显示)" alt="" coords="1365,195,1457,220"/>
<area shape="rect" href="ui__event_8c.html#a58f9ab749ec978cf6b8533ef55bf1045" title="产品应用演示 GIF 轮播刷新任务" alt="" coords="1367,345,1455,371"/>
<area shape="rect" href="ui__event_8c.html#a9a58add9c7451890f77c03ad8136b20d" title="中文字体 与 GIF 轮播演示 任务" alt="" coords="1367,93,1455,119"/>
<area shape="rect" href="ui__event_8c.html#a22a386f4f548c71737aba2415eba22fd" title="开始/暂停 按钮" alt="" coords="1181,80,1299,105"/>
<area shape="rect" href="ui__event_8c.html#aad0d0389b8cba40e9e02c141ce143196" title="上一张 / 下一张 按钮" alt="" coords="1163,5,1317,31"/>
<area shape="rect" href="ui__event_8c.html#ae6df285ba38cc8bc750993fa625b328a" title="进入 PP 页前的资源准备" alt="" coords="1185,395,1295,420"/>
<area shape="rect" href="ui__boot_8c.html#ad915e3f7b5aab86e375414a5844c500a" title="挂载文件系统以完成本地素材检测, 并将其导入至 SDRAM , 同时实现开机动画/视频效果" alt="" coords="358,433,422,459"/>
<area shape="rect" href="ui__event_8c.html#aa79ab1e226edfa66cf11eb85278bbc62" title="M0 页 跳转 M0_SHOW 页的按钮回调" alt="" coords="963,245,1107,271"/>
<area shape="rect" href="ui__event_8c.html#a4cc241fe1f2755f3c46c7dadbd3f58e2" title="M4 页 跳转 M4_SHOW 页的按钮回调" alt="" coords="963,295,1107,320"/>
<area shape="rect" href="ui__event_8c.html#a3d4333831962ec3ffc6e449faad388f7" title="主桌面 M0 页注册事件回调" alt="" coords="719,245,901,271"/>
<area shape="rect" href="setup__home__page__m0_8c.html#aa198ac34b1b6fa9f86d497cc3baf1d19" title="创建 M0 页" alt="" coords="504,245,657,271"/>
<area shape="rect" href="ui_8c.html#a42bb09ef137aaeb1733173f3a88ccc85" title="UI 初始化" alt="" coords="227,307,283,332"/>
<area shape="rect" href="main_8c.html#a8f1efe6291a27ae9b326f0c8a236c102" title="Go to User App Execute" alt="" coords="104,357,179,383"/>
<area shape="rect" href="main_8c.html#a840291bc02cba5474a4cb46a9b9566fe" title="C_Main" alt="" coords="5,357,56,383"/>
<area shape="rect" href="ui__event_8c.html#a6dbae8eeb24298bef6c9090399d4f88c" title="主桌面 M4 页注册事件回调" alt="" coords="719,295,901,320"/>
<area shape="rect" href="setup__home__page__m4_8c.html#afb77653567b2b50aef74a97266462f0c" title="创建 M4 页" alt="" coords="504,295,657,320"/>
<area shape="rect" href="ui__event_8c.html#a052ee01ff73acb520e9ea854151fbdd2" title="进入 PD 页前的资源准备" alt="" coords="1185,345,1295,371"/>
<area shape="rect" href="ui__event_8c.html#a58a9ebadd92a9ee7765fea889ed07073" title="主桌面下 Home 页四个跳转按钮的事件回调" alt="" coords="956,345,1115,371"/>
<area shape="rect" href="ui__event_8c.html#a4f51ebc6c5bd5d4bdc6e80e1d5b3f554" title="tabview 的事件回调" alt="" coords="974,395,1097,420"/>
<area shape="rect" href="ui__event_8c.html#ac0feb967035c8b6b1949cd42c92cbc69" title="主桌面 Home 页注册事件回调" alt="" coords="712,344,908,369"/>
<area shape="rect" href="setup__home__page__home_8c.html#a236ec2e4ba252c597a6c8d695eb5e825" title="创建 Home 页" alt="" coords="497,344,664,369"/>
<area shape="rect" href="ui__event_8c.html#aab07f167804a29f9a34de078552c2fee" title="主桌面注册事件回调" alt="" coords="507,393,654,419"/>
<area shape="rect" href="ui__event_8c.html#ad1d3e81dc6359afc038bd1472b162e25" title="Picture 页 GIF 操作按钮回调 &#45; 左/中/右" alt="" coords="966,80,1105,105"/>
<area shape="rect" href="ui__event_8c.html#a4e9e72dc1392fbfa791b66d58f43cad0" title="主桌面 PP 页注册事件回调" alt="" coords="721,80,899,105"/>
<area shape="rect" href="setup__home__page__pp_8c.html#a2dc049611b8a6a5e649913c9ead4dc72" title="创建 Picture 页" alt="" coords="506,93,655,119"/>
</map>
</div>

</div>
</div>
<a id="ac0e9fc8534c961b9dbba6ad4b8e8b61e" name="ac0e9fc8534c961b9dbba6ad4b8e8b61e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac0e9fc8534c961b9dbba6ad4b8e8b61e">&#9670;&#160;</a></span>jpeg_decode()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void * jpeg_decode </td>
          <td>(</td>
          <td class="paramtype">const void *&#160;</td>
          <td class="paramname"><em>buff</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const uint32_t&#160;</td>
          <td class="paramname"><em>size</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const jpeg_outset_t *&#160;</td>
          <td class="paramname"><em>jpeg_outset</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">void *(*)(size_t size)&#160;</td>
          <td class="paramname"><em>ram_malloc</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const uint8_t&#160;</td>
          <td class="paramname"><em>wait</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>JPEG 硬件解码 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">buff</td><td>: JPEG 图片数据源 </td></tr>
    <tr><td class="paramname">size</td><td>: 数据源大小 / Bytes </td></tr>
    <tr><td class="paramname">jpeg_outset</td><td>: 解码输出选项(详见 jpeg_outset_t ) </td></tr>
    <tr><td class="paramname">ram_malloc</td><td>: 为解码生成的图片数据分配内存的回调函数 (分配成功的内存块首地址)&lt;*ram_malloc&gt;(预分配大小) </td></tr>
    <tr><td class="paramname">wait</td><td>: 1 - 阻塞, 可确保图片信息完整生成 0 - 非阻塞, 须异步调用 while ( <a class="el" href="dev__jpeg_8c.html#a1cbc17a98f22c1c19a7d33c85a14fccd" title="JPEG 硬件解码忙查询">jpeg_decode_isbusy()</a> != 0 ) ; </td></tr>
  </table>
  </dd>
</dl>
<dl class="retval"><dt>返回值</dt><dd>
  <table class="retval">
    <tr><td class="paramname">!NULL</td><td>: 图片解码输出的地址 </td></tr>
    <tr><td class="paramname">NULL</td><td>: 图片解码错误, 可能是内存分配失败、传参错误 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section note"><dt>注解</dt><dd>若 jpeg_outset 有效, 则解码输出选项按用户传入值为准, 否则按 <a class="el" href="version_8h.html" title="版本/目标控制">version.h</a> 宏配置默认设定. 若 ram_malloc 有效, 则解码输出地址按 ram_malloc 分配策略确定, 否则按 jpeg_outset 预期设定值为准. </dd></dl>
<dl class="section user"><dt>示例:</dt><dd><div class="fragment"><div class="line"><a class="code hl_function" href="dev__jpeg_8c.html#ac0e9fc8534c961b9dbba6ad4b8e8b61e">jpeg_decode</a>(<a class="code hl_variable" href="dev__jpeg_8c.html#a134ecf44573e0f7204be01b09c1e48bb">JPEG_Decoder_Buff</a>, len, NULL, ram_malloc, 1);            <span class="comment">//阻塞式, 常用于单一图片解码, 解码输出地址按 ram_malloc 分配策略确定</span></div>
<div class="line"><a class="code hl_function" href="dev__jpeg_8c.html#ac0e9fc8534c961b9dbba6ad4b8e8b61e">jpeg_decode</a>(<a class="code hl_variable" href="dev__jpeg_8c.html#a134ecf44573e0f7204be01b09c1e48bb">JPEG_Decoder_Buff</a>, len, &amp;jpeg_outset, ram_malloc, 1); <span class="comment">//阻塞式, 常用于单一图片解码(常用于 RGB565 dithering enable), 解码选项按 jpeg_outset 设定, 解码输出地址按 ram_malloc 分配策略确定</span></div>
<div class="line"><a class="code hl_function" href="dev__jpeg_8c.html#ac0e9fc8534c961b9dbba6ad4b8e8b61e">jpeg_decode</a>(<a class="code hl_variable" href="dev__jpeg_8c.html#a134ecf44573e0f7204be01b09c1e48bb">JPEG_Decoder_Buff</a>, len, &amp;jpeg_outset, NULL, 0);          <span class="comment">//非阻塞, 常用于视频连续解码, 解码选项与输出地址按 jpeg_outset 设定(须异步调用 jpeg_decode_isbusy 确保图片被完整解码)</span></div>
<div class="ttc" id="adev__jpeg_8c_html_a134ecf44573e0f7204be01b09c1e48bb"><div class="ttname"><a href="dev__jpeg_8c.html#a134ecf44573e0f7204be01b09c1e48bb">JPEG_Decoder_Buff</a></div><div class="ttdeci">uint8_t JPEG_Decoder_Buff[512 *1024]</div><div class="ttdoc">使用 JPEG 解码需要一块缓冲区, 大小视图片文件大小决定, 不能小于最大的那张 JPEG 图的大小, 只有在理论极坏情况下会接近原图大小, 因为 JPEG 编码利用人类视觉系统对色彩/高频的不敏感特...</div><div class="ttdef"><b>Definition:</b> <a href="dev__jpeg_8c_source.html#l00034">dev_jpeg.c:35</a></div></div>
<div class="ttc" id="adev__jpeg_8c_html_ac0e9fc8534c961b9dbba6ad4b8e8b61e"><div class="ttname"><a href="dev__jpeg_8c.html#ac0e9fc8534c961b9dbba6ad4b8e8b61e">jpeg_decode</a></div><div class="ttdeci">void * jpeg_decode(const void *buff, const uint32_t size, const jpeg_outset_t *jpeg_outset, void *(*ram_malloc)(size_t size), const uint8_t wait)</div><div class="ttdoc">JPEG 硬件解码</div><div class="ttdef"><b>Definition:</b> <a href="dev__jpeg_8c_source.html#l00085">dev_jpeg.c:85</a></div></div>
</div><!-- fragment --> </dd></dl>

<p class="definition">在文件 <a class="el" href="dev__jpeg_8c_source.html">dev_jpeg.c</a> 第 <a class="el" href="dev__jpeg_8c_source.html#l00085">85</a> 行定义.</p>
<div class="dynheader">
函数调用图:</div>
<div class="dyncontent">
<div class="center"><img src="dev__jpeg_8c_ac0e9fc8534c961b9dbba6ad4b8e8b61e_cgraph.png" border="0" usemap="#adev__jpeg_8c_ac0e9fc8534c961b9dbba6ad4b8e8b61e_cgraph" alt=""/></div>
<map name="adev__jpeg_8c_ac0e9fc8534c961b9dbba6ad4b8e8b61e_cgraph" id="adev__jpeg_8c_ac0e9fc8534c961b9dbba6ad4b8e8b61e_cgraph">
<area shape="rect" title="JPEG 硬件解码" alt="" coords="5,31,100,56"/>
<area shape="rect" href="jfif__parser_8c.html#abf9f65ef7651d67c735920acc808427a" title="JPEG 图片解析 JFIF 格式" alt="" coords="181,5,255,31"/>
<area shape="rect" href="dev__jpeg_8c.html#a1cbc17a98f22c1c19a7d33c85a14fccd" title="JPEG 硬件解码忙查询" alt="" coords="148,55,288,80"/>
</map>
</div>
<div class="dynheader">
这是这个函数的调用关系图:</div>
<div class="dyncontent">
<div class="center"><img src="dev__jpeg_8c_ac0e9fc8534c961b9dbba6ad4b8e8b61e_icgraph.png" border="0" usemap="#adev__jpeg_8c_ac0e9fc8534c961b9dbba6ad4b8e8b61e_icgraph" alt=""/></div>
<map name="adev__jpeg_8c_ac0e9fc8534c961b9dbba6ad4b8e8b61e_icgraph" id="adev__jpeg_8c_ac0e9fc8534c961b9dbba6ad4b8e8b61e_icgraph">
<area shape="rect" title="JPEG 硬件解码" alt="" coords="1904,196,1999,221"/>
<area shape="rect" href="load__mv_8c.html#a3a29f68f2d856a9c2eea3a328d5233e8" title="解码 avi 视频播放" alt="" coords="1728,171,1835,196"/>
<area shape="rect" href="load__file_8c.html#a19787671d1d62339e0cf53a1b1f7ab98" title="加载图片信息至 SDRAM 内" alt="" coords="1707,220,1856,245"/>
<area shape="rect" href="load__file_8c.html#a2efc2116dbabe389a95c812f9dc6aa03" title="加载资源至 SDRAM 内" alt="" coords="1505,220,1659,245"/>
<area shape="rect" href="ui__event_8c.html#a5d0714ab1f8d703a7a6aa480a25ba608" title="GIF 轮播刷新任务(用于 M0 芯片素材显示)" alt="" coords="1365,296,1457,321"/>
<area shape="rect" href="ui__event_8c.html#ac098d7daab78175856fe3d9f75df0347" title="进入 M0 / M4 SHOW 页前的资源准备" alt="" coords="1171,245,1309,271"/>
<area shape="rect" href="setup__scr__home_8c.html#a9e86b57f14343f1fdf1b6450fbcdef08" title="创建主桌面" alt="" coords="331,295,449,320"/>
<area shape="rect" href="ui__event_8c.html#a443210034526535b309f60ac9de63be6" title="GIF 轮播刷新任务(用于 M4 芯片素材显示)" alt="" coords="1365,195,1457,220"/>
<area shape="rect" href="ui__event_8c.html#a58f9ab749ec978cf6b8533ef55bf1045" title="产品应用演示 GIF 轮播刷新任务" alt="" coords="1367,345,1455,371"/>
<area shape="rect" href="ui__event_8c.html#a9a58add9c7451890f77c03ad8136b20d" title="中文字体 与 GIF 轮播演示 任务" alt="" coords="1367,93,1455,119"/>
<area shape="rect" href="ui__event_8c.html#a22a386f4f548c71737aba2415eba22fd" title="开始/暂停 按钮" alt="" coords="1181,80,1299,105"/>
<area shape="rect" href="ui__event_8c.html#aad0d0389b8cba40e9e02c141ce143196" title="上一张 / 下一张 按钮" alt="" coords="1163,5,1317,31"/>
<area shape="rect" href="ui__event_8c.html#ae6df285ba38cc8bc750993fa625b328a" title="进入 PP 页前的资源准备" alt="" coords="1185,395,1295,420"/>
<area shape="rect" href="ui__boot_8c.html#ad915e3f7b5aab86e375414a5844c500a" title="挂载文件系统以完成本地素材检测, 并将其导入至 SDRAM , 同时实现开机动画/视频效果" alt="" coords="358,433,422,459"/>
<area shape="rect" href="ui__event_8c.html#aa79ab1e226edfa66cf11eb85278bbc62" title="M0 页 跳转 M0_SHOW 页的按钮回调" alt="" coords="963,245,1107,271"/>
<area shape="rect" href="ui__event_8c.html#a4cc241fe1f2755f3c46c7dadbd3f58e2" title="M4 页 跳转 M4_SHOW 页的按钮回调" alt="" coords="963,295,1107,320"/>
<area shape="rect" href="ui__event_8c.html#a3d4333831962ec3ffc6e449faad388f7" title="主桌面 M0 页注册事件回调" alt="" coords="719,245,901,271"/>
<area shape="rect" href="setup__home__page__m0_8c.html#aa198ac34b1b6fa9f86d497cc3baf1d19" title="创建 M0 页" alt="" coords="504,245,657,271"/>
<area shape="rect" href="ui_8c.html#a42bb09ef137aaeb1733173f3a88ccc85" title="UI 初始化" alt="" coords="227,307,283,332"/>
<area shape="rect" href="main_8c.html#a8f1efe6291a27ae9b326f0c8a236c102" title="Go to User App Execute" alt="" coords="104,357,179,383"/>
<area shape="rect" href="main_8c.html#a840291bc02cba5474a4cb46a9b9566fe" title="C_Main" alt="" coords="5,357,56,383"/>
<area shape="rect" href="ui__event_8c.html#a6dbae8eeb24298bef6c9090399d4f88c" title="主桌面 M4 页注册事件回调" alt="" coords="719,295,901,320"/>
<area shape="rect" href="setup__home__page__m4_8c.html#afb77653567b2b50aef74a97266462f0c" title="创建 M4 页" alt="" coords="504,295,657,320"/>
<area shape="rect" href="ui__event_8c.html#a052ee01ff73acb520e9ea854151fbdd2" title="进入 PD 页前的资源准备" alt="" coords="1185,345,1295,371"/>
<area shape="rect" href="ui__event_8c.html#a58a9ebadd92a9ee7765fea889ed07073" title="主桌面下 Home 页四个跳转按钮的事件回调" alt="" coords="956,345,1115,371"/>
<area shape="rect" href="ui__event_8c.html#a4f51ebc6c5bd5d4bdc6e80e1d5b3f554" title="tabview 的事件回调" alt="" coords="974,395,1097,420"/>
<area shape="rect" href="ui__event_8c.html#ac0feb967035c8b6b1949cd42c92cbc69" title="主桌面 Home 页注册事件回调" alt="" coords="712,344,908,369"/>
<area shape="rect" href="setup__home__page__home_8c.html#a236ec2e4ba252c597a6c8d695eb5e825" title="创建 Home 页" alt="" coords="497,344,664,369"/>
<area shape="rect" href="ui__event_8c.html#aab07f167804a29f9a34de078552c2fee" title="主桌面注册事件回调" alt="" coords="507,393,654,419"/>
<area shape="rect" href="ui__event_8c.html#ad1d3e81dc6359afc038bd1472b162e25" title="Picture 页 GIF 操作按钮回调 &#45; 左/中/右" alt="" coords="966,80,1105,105"/>
<area shape="rect" href="ui__event_8c.html#a4e9e72dc1392fbfa791b66d58f43cad0" title="主桌面 PP 页注册事件回调" alt="" coords="721,80,899,105"/>
<area shape="rect" href="setup__home__page__pp_8c.html#a2dc049611b8a6a5e649913c9ead4dc72" title="创建 Picture 页" alt="" coords="506,93,655,119"/>
</map>
</div>

</div>
</div>
<a id="a036588013ef5d04b04f06e8ecd22262e" name="a036588013ef5d04b04f06e8ecd22262e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a036588013ef5d04b04f06e8ecd22262e">&#9670;&#160;</a></span>jpeg_init()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void jpeg_init </td>
          <td>(</td>
          <td class="paramtype">void&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>初始化 JPEG 硬件解码器模块 </p>

<p class="definition">在文件 <a class="el" href="dev__jpeg_8c_source.html">dev_jpeg.c</a> 第 <a class="el" href="dev__jpeg_8c_source.html#l00168">168</a> 行定义.</p>
<div class="dynheader">
这是这个函数的调用关系图:</div>
<div class="dyncontent">
<div class="center"><img src="dev__jpeg_8c_a036588013ef5d04b04f06e8ecd22262e_icgraph.png" border="0" usemap="#adev__jpeg_8c_a036588013ef5d04b04f06e8ecd22262e_icgraph" alt=""/></div>
<map name="adev__jpeg_8c_a036588013ef5d04b04f06e8ecd22262e_icgraph" id="adev__jpeg_8c_a036588013ef5d04b04f06e8ecd22262e_icgraph">
<area shape="rect" title="初始化 JPEG 硬件解码器模块" alt="" coords="219,5,289,31"/>
<area shape="rect" href="bsp__init_8c.html#ac1d41f544770121f1cb61aeb64e5807e" title="初始化所有的硬件设备, 该函数配置CPU寄存器和外设的寄存器并初始化一些全局变量(只需要调用一次)" alt="" coords="104,5,171,31"/>
<area shape="rect" href="main_8c.html#a840291bc02cba5474a4cb46a9b9566fe" title="C_Main" alt="" coords="5,5,56,31"/>
</map>
</div>

</div>
</div>
<a id="a72dac42e70bc8ad56832a3a3045476e7" name="a72dac42e70bc8ad56832a3a3045476e7"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a72dac42e70bc8ad56832a3a3045476e7">&#9670;&#160;</a></span>isr_jpeg()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void isr_jpeg </td>
          <td>(</td>
          <td class="paramtype">void&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>JPEG ISR Callback </p>

<p class="definition">在文件 <a class="el" href="dev__jpeg_8c_source.html">dev_jpeg.c</a> 第 <a class="el" href="dev__jpeg_8c_source.html#l00179">179</a> 行定义.</p>

</div>
</div>
<h2 class="groupheader">变量说明</h2>
<a id="a134ecf44573e0f7204be01b09c1e48bb" name="a134ecf44573e0f7204be01b09c1e48bb"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a134ecf44573e0f7204be01b09c1e48bb">&#9670;&#160;</a></span>JPEG_Decoder_Buff</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint8_t JPEG_Decoder_Buff[512 *1024]</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>使用 JPEG 解码需要一块缓冲区, 大小视图片文件大小决定, 不能小于最大的那张 JPEG 图的大小, 只有在理论极坏情况下会接近原图大小, 因为 JPEG 编码利用人类视觉系统对色彩/高频的不敏感特性 1、RGB to YCrCb, 对 Cr 和 Cb 下采样; 2、DCT-2D 变换, 舍弃部分高频信息, 采用游程编码和 Huffman 编码进一步减少数据冗余; 故基本不可能达到原图 bmp 格式的大小. </p>
<p >(采用 LCD_HDOT * LCD_VDOT * LCD_FMT 开辟的区域会留有很大的余量) 考虑到 JPEG 硬解码器使用频率十分频繁, 并且存在同时播放视频与解码单张图片的场景, 衡量动态与静态内存分配对效率的影响, 故直接在此预先定义开辟了一块 JPEG_Decoder_Buff 缓冲区专用于 JPEG 解码所需 </p>

<p class="definition">在文件 <a class="el" href="dev__jpeg_8c_source.html">dev_jpeg.c</a> 第 <a class="el" href="dev__jpeg_8c_source.html#l00034">34</a> 行定义.</p>

</div>
</div>
<a id="ac226d28552b805cfde07209d751e923e" name="ac226d28552b805cfde07209d751e923e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac226d28552b805cfde07209d751e923e">&#9670;&#160;</a></span>IRQ_JPEG_Flag</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">volatile <a class="el" href="dev__dac_8c.html#a3d600ad47f709a0dcfa5cbf1a00fc31a">irq_flag_t</a> IRQ_JPEG_Flag = <a class="el" href="dev__dac_8c.html#a3d600ad47f709a0dcfa5cbf1a00fc31aa2bc49ec37d6a5715dd23e85f1ff5bb59">OK</a></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>JPEG 解码完成标志 </p>

<p class="definition">在文件 <a class="el" href="dev__jpeg_8c_source.html">dev_jpeg.c</a> 第 <a class="el" href="dev__jpeg_8c_source.html#l00045">45</a> 行定义.</p>

</div>
</div>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
制作者&#160;<a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.5
</small></address>
</body>
</html>
